package dao;

import java.util.List;

import domain.Homework;


/**
 * 作业管理Dao
 * 
 * May 27, 2009
 *
 * @author Fabian
 *
 */
public interface HomeworkMagDao {
	/**
	 * 获取一页的书本Homework 
	 */
	public List<Homework> getPageBookHomework(int start, int limit, int tch_id);
	/**
	 * 获取所有的书本Homework记录数
	 */
	public int getBookTotalCount(int tch_id);
	/**
	 * 获取一页的课外Homework 
	 */
	public List<Homework> getPageGoodHomework(int start, int limit, int tch_id);
	/**
	 * 获取所有的课外Homework记录数
	 */
	public int getGoodTotalCount(int tch_id);
	/**
	 * 获取学生一页的书本Homework 
	 */
	public List<Homework> getStuPageBookHomework(int start, int limit, int stu_id);
	/**
	 * 获取学生所有的书本Homework记录数
	 */
	public int getStuBookTotalCount(int stu_id);
	/**
	 * 获取学生一页的课外Homework 
	 */
	public List<Homework> getStuPageGoodHomework(int start, int limit, int stu_id);
	/**
	 * 获取学生所有的课外Homework记录数
	 */
	public int getStuGoodTotalCount(int stu_id);
	/**
	 * 添加书本Homework
	 * @param t
	 * @return
	 */
	public boolean addBookHomework(Homework hw);
	/**
	 * 添加课外Homework
	 * @param t
	 * @return
	 */
	public boolean addGoodHomework(Homework hw);
	/**
	 * 修改Homework
	 * @param t
	 * @return
	 */
	public boolean modifyHomework(Homework hw);
	/**
	 * id表示的Homework
	 * @return
	 */
	public boolean delHomework(int id);
}
